package com.piece.core.elasticsearch.annotations;

import com.piece.core.elasticsearch.enums.AnalyzerType;
import com.piece.core.elasticsearch.enums.FieldType;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Documented
@Inherited
public @interface Field {

    String name() default "";

    FieldType type() default FieldType.TEXT;

    boolean searchAnalyzer() default false;

    AnalyzerType analyzer() default AnalyzerType.IK_MAX_WORD;
}
